import request from '@/utils/request'

// 查询器具操作记录列表
export function listContainerOperationLog(query) {
  return request({
    url: '/pack/container/operation/log/list',
    method: 'get',
    params: query
  })
}

// 查询器具操作记录列表（带搜索条件）
export function searchContainerOperationLog(data) {
  return request({
    url: '/pack/container/operation/log/search',
    method: 'post',
    data: data
  })
}

// 查询器具操作记录详细
export function getContainerOperationLog(logId) {
  return request({
    url: '/pack/container/operation/log/' + logId,
    method: 'get'
  })
}

// 新增器具操作记录
export function addContainerOperationLog(data) {
  return request({
    url: '/pack/container/operation/log',
    method: 'post',
    data: data
  })
}

// 修改器具操作记录
export function updateContainerOperationLog(data) {
  return request({
    url: '/pack/container/operation/log',
    method: 'put',
    data: data
  })
}

// 删除器具操作记录
export function delContainerOperationLog(logId) {
  return request({
    url: '/pack/container/operation/log/' + logId,
    method: 'delete'
  })
}

// 获取筛选条件选项
export function getFilterOptions() {
  return request({
    url: '/pack/container/operation/log/filter/options',
    method: 'get'
  })
}

// 导出器具操作记录
export function exportContainerOperationLog(data) {
  return request({
    url: '/pack/container/operation/log/export',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
} 